-- GENERATED SPELL FOR [Hailscorn] --


function spell0_28208(pUnit, Event) --@Ice Claw,n/a--
pUnit:FullCastSpellOnTarget(3130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28208', 6000, 1)
end

function spell1_28208(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(51144,pUnit)
pUnit:RegisterEvent('Sorts_28208', 1000, 1)
end

function Sorts_28208(pUnit, Event)
local choix_sorts_28208 = math.random(0, 1)
if choix_sorts_28208 == 0 then
pUnit:RegisterEvent('spell0_28208', 1, 1)
end
if choix_sorts_28208 == 1 then
pUnit:RegisterEvent('spell1_28208', 1, 1)
end
end

function mob28208_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28208', math.random(1500, 3000), 1)
end

function mob28208_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28208_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28208_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28208, 1, 'mob28208_Action')
RegisterUnitEvent(28208, 2, 'mob28208_Leave')
RegisterUnitEvent(28208, 3, 'mob28208_Kill')
RegisterUnitEvent(28208, 4, 'mob28208_Die')
